<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
     //2.商品对象
//   class product{


//   }
// class Phone extends Product {

// }
var product = {
name:"鞋子",
desc:"鞋子非常棒",
price:99,
brand:"nick"


}
  //1.定义一个手机对象
  var phone = {
    name: "iphone",
    title: "对iphone的describtion",
    price:888,

    callPhone: function(phoneNum) {
      console.log("打电话给某人：",phoneNum)
    },

    playGame:function(gameName) {
      console.log("玩游戏：",gameNum)
    }

  }
 //定义用户对象
  var user = {
    id:1111111111111111,
    account: "coderwhy",
    nickname:"coderehy",
    password:"xxx123",
    avatarURL:"图片地址",

    role: {
      id: 110,
      name:"管理员",
      creatTime:"2033-03-03"
    }
  }
  </script>
</body>
</html>